<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8"); 

	String ENAME = request.getParameter("ENAME");
	String PERNR = request.getParameter("PERNR");
	String ORGTX = request.getParameter("ORGTX");
	String TEL_OFFICE = request.getParameter("TEL_OFFICE");
	
	String BEGDA = request.getParameter("BEGDA");
	String TEL = request.getParameter("TEL");
	String STEXT = request.getParameter("STEXT");
	
	final int MAX_COUNT = 4;
	String DETAIL_COUNT = request.getParameter("DETAIL_COUNT") == null ? "0" : request.getParameter("DETAIL_COUNT");
	int count = Integer.parseInt(DETAIL_COUNT);
	

	String [] FCNAM = new String[count];
	String [] REGNO = new String[count];	
	String [] ZYEAR = new String[count];		
	String [] ZSLART = new String[count];		
	String [] ZGRADE = new String[count];		
	String [] ZCOUMS = new String[count];	
	String [] TOTPY = new String[count];	
	String [] TERM = new String[count];	
	    
	
	for(int i=0; i<count; ++i) {
		FCNAM[i] = request.getParameter("FCNAM" + Integer.toString(i)) == null ? "" : request.getParameter("FCNAM" + Integer.toString(i));
		REGNO[i] = request.getParameter("REGNO" + Integer.toString(i)) == null ? "" : request.getParameter("REGNO" + Integer.toString(i));	
		ZYEAR[i] = request.getParameter("ZYEAR" + Integer.toString(i)) == null ? "" : request.getParameter("ZYEAR" + Integer.toString(i));	
		ZSLART[i] = request.getParameter("ZSLART" + Integer.toString(i)) == null ? "" : request.getParameter("ZSLART" + Integer.toString(i));	
		ZGRADE[i] = request.getParameter("ZGRADE" + Integer.toString(i)) == null ? "" : request.getParameter("ZGRADE" + Integer.toString(i));	
		ZCOUMS[i] = request.getParameter("ZCOUMS" + Integer.toString(i)) == null ? "" : request.getParameter("ZCOUMS" + Integer.toString(i));	
		TOTPY[i] = request.getParameter("TOTPY" + Integer.toString(i)) == null ? "" : request.getParameter("TOTPY" + Integer.toString(i));	
		TERM[i] = request.getParameter("TERM" + Integer.toString(i)) == null ? "" : request.getParameter("TERM" + Integer.toString(i));	
	}
	
%>
    
<html>
<head>
<title>
학자금 신청서
</title> 


<style>
	td{font-size:11px;}
	.td_t1{
		font-size:20px;
		font-weight:bold;
	}
	.td_t2{
		font-size:16px;
		font-weight:bold;
	}
	
	.td_t3{
		font-size:14px;
	}
	
	.label01 {
		font-size:16px;
	}	
</style>


<script language="javascript">

  function Print(){
   document.all.ptLayer.style.display="none";
   self.print();
   document.all.ptLayer.style.display="block";
  }

</script>
</head>

<body  topmargin="0" marginwidth="0" marginheight="0" align="center">
<FORM name="webguiform" method=post >
         
         
<!-- HEAER print -->
<table width="710" height="110">
	<tr height="50">
		<td width=710 class=td_t1 align="center" valign="bottom">학자금 신청서</td>
	</tr>
	
	<tr height="30">
		<td align="right" valign="bottom" class=td_t3 ><font style="font-weight:bold">신청구분 :</font> <%=STEXT %></td>
	</tr>
		
	<tr height="30">
		<td align="left" valign="bottom" class=td_t2>1. 인적사항</td>
	</tr>
</table>
<table width="710" cellspacing="0" cellpadding="0" border="1"  bordercolor="000000" style="border-collapse:collapse;border-width:1px;">
  <tr height="30"> 
    <td width="30%" class=td_t3 align="center" bgcolor="#DFE9DA">소속</td>
    <td width="15%" class=td_t3 align="center" bgcolor="#DFE9DA">사번</td>
    <td width="15%" class=td_t3 align="center" bgcolor="#DFE9DA">성명</td>
    <td width="15%" class=td_t3 align="center" bgcolor="#DFE9DA">전화번호</td>
  </tr>
  <tr height="30"> 
    <td class=td_t3 align="center" ><%=ORGTX %></td>
    <td class=td_t3 align="center" ><%=PERNR %></td>
    <td class=td_t3 align="center" ><%=ENAME %></td>
    <td class=td_t3 align="center" ><%=TEL %></td>
  </tr>
</table>

<table width="710" height="30">
	<tr height="30">
		<td align="left" class=td_t2 valign="bottom">2. 자녀 인적사항</td>
	</tr>
</table>
<table width="710" cellspacing="0" cellpadding="0" border="1"  bordercolor="000000" style="border-collapse:collapse;border-width:1px;">
  <tr height="30"> 
    <td width="100" class=td_t3 align="center">성명</td>
    <td width="120" class=td_t3 align="center">주민등록번호</td>
    <td width="100" class=td_t3 align="center">입학년도</td>
    <td width="100" class=td_t3 align="center">적용기간</td>
    <td width="100" class=td_t3 align="center">학교</td>
    <td width="80" class=td_t3 align="center">학년</td>
    <td width="80" class=td_t3 align="center">학기</td>
    <td width="150" class=td_t3 align="center">신청금액</td>
  </tr>


<!--  본문 테이블 Content-->
      
<!-- j가 총data건수보다 크면 빈 라인을 찍는다 -->
 <% 
	for(int i=0; i<count; ++i) {
%>
   <tr height="30"> 
    <td width="100" class=td_t3 align="center">&nbsp;<%=FCNAM[i] %></td>
    <td width="120" class=td_t3 align="center">&nbsp;<%=REGNO[i] %></td>
    <td width="100" class=td_t3 align="center">&nbsp;<%=ZYEAR[i] %></td>
    <td width="100" class=td_t3 align="center">&nbsp;<%=TERM[i] %></td>
    <td width="150" class=td_t3 align="center">&nbsp;<%=ZSLART[i] %></td>
    <td width="80" class=td_t3 align="center">&nbsp;<%=ZGRADE[i] %></td>
    <td width="80" class=td_t3 align="center">&nbsp;<%=ZCOUMS[i] %></td>
    <td width="160" class=td_t3 align="right">&nbsp;<%=TOTPY[i] %></td>
  </tr>
<% 
	}
	for(int j = 0; j < MAX_COUNT-count; ++j ) {
%>
<!-- j가 총data건수보다 크면 빈 라인을 찍는다 -->
         
  <tr height="30"> 
    <td width="100" align="center">&nbsp;</td>
    <td width="100" align="center">&nbsp;</td>
    <td width="100" align="center">&nbsp;</td>
    <td width="150" align="center">&nbsp;</td>
    <td width="100" align="center">&nbsp;</td>
    <td width="80" align="center">&nbsp;</td>
    <td width="80"  align="center">&nbsp;</td>
    <td width="160" align="center">&nbsp;</td>
  </tr>
<% 
	}
%>

<table width="710" height="30">
	<tr height="30">
		<td align="left" class=td_t2 valign="bottom">3. 지원 기준</td>
	</tr>
</table>
<table width="710" cellspacing="0" cellpadding="0" border="1"  bordercolor="000000" style="border-collapse:collapse;border-width:1px;">
  <tr height="30"> 
    <td width="15%" class=td_t3 align="center" bgcolor="#DFE9DA">구분</td>
    <td width="30%" class=td_t3 align="center" bgcolor="#DFE9DA">세부사항</td>
    <td width="55%" class=td_t3 align="center" bgcolor="#DFE9DA">적용기간 및 제출서류</td>
  </tr>
  <tr height="30"> 
    <td class=td_t3 align="center" >유치원</td>
    <td class=td_t3 align="center" >만5세 ~ 6세인 자녀</td>
    <td class=td_t3 align="left" rowspan="3">
    * 신입생: 매년 3월 ~ 익년 2월 급여반영 지급<br>
    * 재학생: 매년 1월 ~ 12월 급여 반영 지급<br>
    * 지급금액 : 월 10만원/인 (인원제한없음)<br>
    * 제출서류 : 주민등록등본(e-HR에 등록된 경우 생략)
    </td>
  </tr>
  <tr height="30"> 
    <td class=td_t3 align="center" >초등학교</td>
    <td class=td_t3 align="center" rowspan="2">재학기간</td>
  </tr>
  <tr height="30"> 
    <td class=td_t3 align="center" >중학교</td>
  </tr>
  <tr height="30"> 
    <td class=td_t3 align="center" >고등학교</td>
    <td class=td_t3 align="center" rowspan="2" >재학기간</td>
    <td class=td_t3 align="left" rowspan="2">* 제출서류 : 납입영수증원본, 주민등록등본(e-HR에 등록된 경우 생략)</td>
  </tr>
  <tr height="30"> 
    <td class=td_t3 align="center" >대학교</td>
  </tr>

  <tr height="30"> 
    <td class=td_t3 align="center" >해외교육기관</td>
    <td class=td_t3 align="center" >재학기간</td>
    <td class=td_t3 align="left" rowspan="3">* 제출서류 : 재학증명서,납입영수증원본,정규교육기관임을 확인할 수 있는 증명서,주민등록등본(e-HR에 등록된 경우 생략)
    </td>
  </tr>
    
</table>

<table width="710" height="30">
	<tr height="30">
		<td align="left" class=td_t2 valign="bottom">4. 입금계좌 : 급여계좌</td>
	</tr>
</table>

<!-- FOOTER -->
<table width="710" cellspacing="0" cellpadding="0" bordercolor="000000" style="border-collapse:collapse;border-width:1px;">
          <td height="200" colspan="2" align="center" valign="top"  class=td_t3>
                	위와 같이 학자금의 지원을 신청합니다.
           </td>
        </tr> 
        <tr> 
          <td align="left" valign="bottom" class=td_t3  style="PADDING-LEFT: 570px;">
              	<font style="font-weight:bold">신청일 :</font> <%=BEGDA %>
           </td>
        </tr> 
        <tr> 
          <td align="left" valign="bottom" class=td_t3 style="PADDING-LEFT: 570px;">
          	<font style="font-weight:bold">신청인 :</font> <%=ENAME %>  (인)
          </td>
        </tr>     
 
 <!------------  end  2007.12.06 choijj add by kimjy ---------------------------------->
</table>

  

<br/>

<!-- 버튼 이 미지 시작-->
     <div id="ptLayer">
      <table width="100%" border="0" cellspacing="1" cellpadding="1">
        <!-- `Title_Bottom_Blank()` -->
        <tr>   
          <td >
               <button onclick="Print()">명세서출력</button>
          </td>
        </tr>
        <!-- `Title_Bottom_Blank()` -->
      </table>
     </div>
      <!-- 버 튼 이미지 끝-->

  </form>
</body>
</html>
